﻿using System;

namespace Sustainalytics.LongRunningTaskManager.Interface
{
    /// <summary>
    /// Thrown when task manager settings configuration section was not found.
    /// </summary>
    public class LongRunningTaskManagerSettingsNotFoundException : Exception
    {
        /// <summary>
        /// Configuration section name.
        /// </summary>
        public string ConfigSectionName { get; set; }

        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="sectionName"> Section name. </param>
        public LongRunningTaskManagerSettingsNotFoundException(string sectionName)
        {
            this.ConfigSectionName = sectionName;
        }
    }
}
